<div ng-controller="listCtrl">



	<div data-am-widget="list_news" class="am-list-news am-list-news-default" 
	ng-show="lotteryList.length>0" >

		<div class="am-list-news-hd am-cf">
			<h2>已开奖微博</h2>
		</div>

		<div class="am-list-news-bd">

			<ul class="am-list" ng-repeat="w in lotteryList">

				<li class="am-g am-list-item-dated">
					<div  class="am-list-item-hd ">
						<h6 class="weibo"> {{w.status.text }}</h6>
					</div>

					<div  >转发({{w.status.repostsCount}}) 评论({{w.status.commentsCount}})
					    {{w.status.createdAt}}
					</div>
                    
                    中奖名单
					<ul  ng-repeat="u in w.lottery">
					 <li><a href="http://weibo.com/{{u.uid}}/"> @{{u.name}} </a> </li>
					</ul>
 
				</li>
			</ul>
		</div>
	</div>


    <hr data-am-widget="divider" style="" class="am-divider am-divider-default" />


	<div data-am-widget="list_news" class="am-list-news am-list-news-default" >

		<div class="am-list-news-hd am-cf">
			<h2>指定抽奖微博</h2>
		</div>

		<div class="am-list-news-bd">

			<ul class="am-list" ng-repeat="s in list">


				<li class="am-g am-list-item-dated">
					<div  class="am-list-item-hd ">
						<h6 class="weibo"> {{s.text }}</h6>

					</div>

					<div  >转发({{s.repostsCount}}) 评论({{s.commentsCount}})    {{s.createdAt}}
						<button class="am-fr" ng-click="s.show=!s.show">指定抽奖</button>
					</div>

					<div>

					<div class="am-panel am-panel-default" ng-show="s.show">
							<div class="am-panel-bd">

								是否关注我<input type="checkbox"  ng-init="s.followMe=true" ng-model="s.followMe"> <br>
								设置中奖人数 <input type="number" min="1" max="5" maxlength="1"  ng-init="s.count=1"  ng-model="s.count"> <br>
                                
                                <button ng-click="lottery(s)">确定</button>
							</div>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</div>
</div>